/// <summary>
/// Summary description for User
/// </summary>
public class User
{
    protected string name, password;
    protected int id, roleId;

    public User()
    {
    }
    public User(User user)
	{
        Assign(user);
	}

    private void Assign(User user)
    {
        this.Id = user.Id;
        this.Name = user.Name;
        this.Password = user.Password;
        this.RoleId = user.RoleId;
    }

    public virtual string Name
    {
        get { return name; }
        set { name = value; }
    }

    public virtual string Password
    {
        get { return password; }
        set { password = value; }
    }

    public virtual int Id
    {
        get { return id; }
        set { id = value; }
    }

    public virtual int RoleId
    {
        get { return roleId; }
        set { roleId = value; }
    }
    
    
}